WPF和Silverlight版Chart2D帮助文档
次要刻度线重叠

您可以通过为MinorTickOverlap (在线文档 'MinorTickOverlap 属性')属性指定一个从 0 到 1 的值,决定次要刻度线标记的重叠程度。默认值是0,这意味着没有重叠。当重叠是1,整个刻度线位于绘图区域内。

C#
拷贝代码
c1Chart1.Reset(true);

c1Chart1.Data.Children.Add(
new DataSeries() { ValuesSource = new double[] { 1, 2, 1, 2 } });

c1Chart1.ChartType = ChartType.LineSymbols;
c1Chart1.View.AxisX.MinorGridStrokeThickness = 0;
c1Chart1.View.AxisX.MinorTickThickness = 3;
c1Chart1.View.AxisX.MinorTickHeight = 10;
c1Chart1.View.AxisX.MinorTickOverlap = .5;

c1Chart1.View.AxisY.MinorGridStrokeThickness = 0;
c1Chart1.View.AxisY.MinorTickThickness = 3;
c1Chart1.View.AxisY.MinorTickHeight = 10;
c1Chart1.View.AxisY.MinorTickOverlap = 1;

下图描述了一个MinorTickOverlap 设置为“1”时的结果:

 

 

 

查看其它

 

 


产品网站:http://www.gcpowertools.com.cn  |  咨询热线:4006576008   |   ©2015 西安葡萄城